package java8.lambda;

/**
 * @program: util
 * @description:
 * @author: zhouliangliang
 * @create: 2019-08-27 10:21
 **/
public class Apple {

    private String color;
    private Integer weight;
    private String origin;

    public Apple() {
        this("red");
    }

    public Apple(String color) {
        this("red", 100);
        this.color = color;

    }

    public Apple(String color, Integer weight) {
        this("red", 100, "china");
        this.color = color;
        this.weight = weight;
    }

    public Apple(String color, Integer weight, String origin) {
        this.color = color;
        this.weight = weight;
        this.origin = origin;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public String getOrigin() {
        return origin;
    }

    public void setOrigin(String origin) {
        this.origin = origin;
    }

    @Override
    public String toString() {
        return "color : " + color + " weight : " + weight + " origin : " + origin + "\r";
    }
}
